package org.example.datascreen.eneity.VO;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class LoginVO {
    @NotEmpty
    @Pattern(regexp = "^\\S{3,16}$", message = "用户名长度必须在3到16位之间，且不能包含空格")
    private String username;
    @NotEmpty
    @Pattern(regexp = "^\\S{4,16}$", message = "密码长度必须在4到16位之间，且不能包含空格")
    private String password;
}
